package com.hbnu.service;

import com.hbnu.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;

import javax.annotation.Resource;

public class UserService {
//@Autowired
    @Resource(name="userDao")
    private UserDao userDao;

//    public void setUserDao(UserDao userDao) {
//        this.userDao = userDao;
//    }

    public void addUser(){

        System.out.println("add user by userService...");
        userDao.addUser();
    }
}
